<%@page pageEncoding="utf-8" %>


    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="main" style="width: 600px;height:400px;"></div>
   
    <script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        //var myChart = echarts.init(document.getElementById('main'));
		var goEasy = new GoEasy({
	        appkey: "BS-00384e0d5303401ca5226203f165666e"
	    });
	    goEasy.subscribe({
	        channel: "my_channel",
	        onMessage: function (message) {
	            alert("Channel:" + message.channel + " content:" + message.content);
	        }
	    });
        //myChart.setOption(option);
    </script>
